<template>
  <div>
    <span>请选择你喜欢的专栏</span><br>
    <input  type="checkbox" v-model="hobby" value="科幻">科幻
    <input  type="checkbox" v-model="hobby" value="喜剧">喜剧
    <input  type="checkbox" v-model="hobby" value="动漫">动漫
    <input  type="checkbox" v-model="hobby" value="冒险">冒险
    <input  type="checkbox" v-model="hobby" value="科技">科技
    <input  type="checkbox" v-model="hobby" value="军事">军事
    <input  type="checkbox" v-model="hobby" value="娱乐">娱乐
    <input  type="checkbox" v-model="hobby" value="奇闻">奇闻
  <!-- <li v-if="hobby=true">科幻</li>
  <li>喜剧</li>
  <li>动漫</li>
  <li>冒险</li>
  <li>科技</li>
  <li>军事</li>
  <li>娱乐</li>
  <li>奇闻</li> --><br>
  <br>
  你的爱好:<span v-html="hobby"></span>
  </div>
  
</template>

<script>
export default {
  name: 'VuecliDemoApp',

  data() {
    return {
      hobby:[],
      // isOk:false
    };
  },

  mounted() {
    
  },

  methods: {
    // btn()
    // this.hobby=this.hobby.split("").join("")
  },
};
</script>

<style>

</style>